package com.baizhi.service.impl;

import com.baizhi.dao.CityDao;
import com.baizhi.entity.City;
import com.baizhi.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CityServiceImpl implements CityService {
    private CityDao cityDao;
    @Autowired
    public void setCityDao(CityDao cityDao) {
        this.cityDao = cityDao;
    }

    @Override
    public List<City> selectByProvinceid(String provinceid) {
        List<City> cities = cityDao.selectByProvinceid(provinceid);
        return cities;
    }
}
